package com.contractpage.ec.service.impl;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.contractpage.common.persistence.Page;
import com.contractpage.ec.dao.ExpressInboundDao;
import com.contractpage.ec.service.ExpressInboundService;
import com.contractpage.ec.entity.ExpressInbound;



/**
 * 
 * ExpressInboundServiceImpl数据库操作接口类
 * 
 **/
@Transactional
@Service
public class ExpressInboundServiceImpl implements ExpressInboundService{
	@Autowired
	private ExpressInboundDao expressInboundDao;
	@Override
	public Page<ExpressInbound> findList(Page<ExpressInbound> page,ExpressInbound entity){
		entity.setPage(page);
		page.setList(expressInboundDao.findList(entity));
		return page;
	}
	@Override
	public int insert(ExpressInbound entity){
		entity.preInsert("");
		return expressInboundDao.insert(entity);
	}
	@Override
	public int update(ExpressInbound entity){
		entity.preUpdate();
		return expressInboundDao.update(entity);
	}
	@Override
	public int delete(ExpressInbound entity){
		 return expressInboundDao.delete(entity);
	}
}